cmake_minimum_required (VERSION 3.10)
project(VsomeipClient)

find_package(Threads REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -g3")

file(GLOB_RECURSE LOGCI_LIGIC_SRCS    ${CMAKE_CURRENT_SOURCE_DIR}/network/src/*.cpp)

set(VsomeipClient_SRCS
  ${LOGCI_LIGIC_SRCS}
  ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
)

link_directories(
  ${ADAPTIVE_AUTOSAR_LIB_ROOT}
  ${BOOST_LIB_ROOT}
  ${GTEST_LIB_ROOT}
)

find_package(vsomeip3)
if (NOT vsomeip3_FOUND)
    message("vsomeip3 was not found. Please specify vsomeip_DIR")
endif()

add_executable(VsomeipClient ${VsomeipClient_SRCS})

# Add include header files
set(${PROJECT_NAME}_INCLUDE_DIRS)

# ---------- Start to Add include directories: Aptiv Platform -------------
# Add include header files belongs to Aptiv Platform paths
#list(APPEND ${PROJECT_NAME}_INCLUDE_DIRS ${${PROJECT_NAME}_INCLUDE_DIRS} ${APTIV_PLATFORM_INCLUDE_ROOT}/)
# ---------- Start to Add include directories: Aptiv Platform -------------
target_include_directories(VsomeipClient   PUBLIC  
	${${PROJECT_NAME}_INCLUDE_DIRS}
)

include_directories (
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${VSOMEIP_LIBRARIES} 
  ${GTEST_INCLUDE_ROOT}
  ${CMAKE_THREAD_LIBS_INIT}

)


target_link_libraries(VsomeipClient
        ${VSOMEIP_LIBRARIES}
        ${CMAKE_THREAD_LIBS_INIT}
        gtest
        pthread
 )





